#include <windows.h>
#include "CPartySearchPacket.h"

CPartySearchPacket::CPartySearchPacket(CChar * searcher) {
	memset(this->data, 0, 0x04*2);
	this->type = 0xE1;
	this->size = 0x04; 
	//Search packet with the size 0xFF followed by the targID of the person calling the search.
	this->data[0] = 0xFF;
	unsigned short targId;
	targId = searcher->getTargId();
	memcpy(this->data+0x01, &targId, sizeof(short));
}

CPartySearchPacket::~CPartySearchPacket() {

}